package isogame {
	
	import flash.events.Event;
	import flash.events.IOErrorEvent;
	import flash.xml.*;
	
	import isogame.Event.FileLoaderEvent;
	import isogame.FileLoader;
	
	public class XmlParser extends FileLoader{
		
		//---------------------------------------
		// CONSTRUCTOR
		//---------------------------------------
		
		public function XmlParser(fileName:String) {
			super(fileName);
			this.addEventListener(FileLoaderEvent.SUCCESS, this.parse);
		}
		
		//---------------------------------------
		// GETTER / SETTERS
		//---------------------------------------
		
		
		//---------------------------------------
		// PUBLIC METHODS
		//---------------------------------------
		
		public function parseMap(xml:XML):void{
			trace(xml);
		}
		
		//---------------------------------------
		// PRIVATE METHODS
		//---------------------------------------
		
		private function parse(event:Event):void{
			trace("aa");
			
		}
		
	}// end class
}// end package